package com.hdoit.ares.web.tp.modelconfig;
import com.hdoit.ares.web.tp.providers.TestCarCollectionDriverInsProvider;
import com.hdoit.ares.web.tp.providers.TestCarCollectionGlassInsProvider;
import com.hdoit.ares.web.tp.providers.TestCarCollectionInsuredProvider;
import com.hdoit.ares.web.tp.providers.TestCarCollectionIsLoanProvider;
import com.hdoit.ares.web.tp.providers.TestCarCollectionPassengerInsProvider;
import com.hdoit.ares.web.tp.providers.TestCarCollectionProductNameProvider;
import com.hdoit.ares.web.tp.providers.TestCarCollectionStatusProvider;
import com.hdoit.ares.web.tp.providers.TestCarCollectionThirdPartyInsProvider;
import com.tennetcn.component.attribute.DisplayNameAttribute;
import com.tennetcn.component.attribute.DropDownListAttribute;
import com.tennetcn.component.attribute.base.ModelMetadataAttributeConfiguration;

/**
 * @author      caochengmeng
 * @email       
 * @createtime  2018年01月31日 14:32:16
 * @comment
 */
public class TestCarCollectionConfig extends ModelMetadataAttributeConfiguration{
    public TestCarCollectionConfig(){
        this.setProperty("customerId")
            .hasAttribute(new DisplayNameAttribute("用户标识"));

        this.setProperty("productName")
            .hasAttribute(new DisplayNameAttribute("保险产品"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionProductNameProvider()));

        this.setProperty("provinceId")
            .hasAttribute(new DisplayNameAttribute("省份Id"));

        this.setProperty("cityId")
            .hasAttribute(new DisplayNameAttribute("城市Id"));

        this.setProperty("insuName")
            .hasAttribute(new DisplayNameAttribute("保险公司"));

        this.setProperty("buyerIdentity")
            .hasAttribute(new DisplayNameAttribute("购买人身份"));

        this.setProperty("carLicenseNo")
            .hasAttribute(new DisplayNameAttribute("车牌"));

        this.setProperty("carOwener")
            .hasAttribute(new DisplayNameAttribute("车主"));

        this.setProperty("phone")
            .hasAttribute(new DisplayNameAttribute("电话"));

        this.setProperty("email")
            .hasAttribute(new DisplayNameAttribute("邮箱"));

        this.setProperty("idCardFace")
            .hasAttribute(new DisplayNameAttribute("身份证正面"));

        this.setProperty("idCardBack")
            .hasAttribute(new DisplayNameAttribute("身份证反面"));

        this.setProperty("licenseNoFacae")
            .hasAttribute(new DisplayNameAttribute("行驶证正业"));

        this.setProperty("licenseNoBack")
            .hasAttribute(new DisplayNameAttribute("行驶证副业"));

        this.setProperty("isTransfer")
            .hasAttribute(new DisplayNameAttribute("是否过户"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionIsLoanProvider()));

        this.setProperty("isLoan")
            .hasAttribute(new DisplayNameAttribute("是否贷款"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionIsLoanProvider()));

        this.setProperty("loanBrank")
            .hasAttribute(new DisplayNameAttribute("贷款银行"));

        this.setProperty("vehicleDemageIns")
            .hasAttribute(new DisplayNameAttribute("车损险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("thirdPartyIns")
            .hasAttribute(new DisplayNameAttribute("三者险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionThirdPartyInsProvider()));

        this.setProperty("driverIns")
            .hasAttribute(new DisplayNameAttribute("司机责任险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionDriverInsProvider()));

        this.setProperty("passengerIns")
            .hasAttribute(new DisplayNameAttribute("乘客责任险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionPassengerInsProvider()));

        this.setProperty("theftIns")
            .hasAttribute(new DisplayNameAttribute("盗抢险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("glassIns")
            .hasAttribute(new DisplayNameAttribute("玻璃险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionGlassInsProvider()));

        this.setProperty("combustionIns")
            .hasAttribute(new DisplayNameAttribute("自燃险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("scratchIns")
            .hasAttribute(new DisplayNameAttribute("划痕险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("sadingIns")
            .hasAttribute(new DisplayNameAttribute("涉水险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("vehicleDemageMissedThirdPartyCla")
            .hasAttribute(new DisplayNameAttribute("无法找到第三方特约险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("specifyingPlantCla")
            .hasAttribute(new DisplayNameAttribute("指定专修厂险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("newEquipmentIns")
            .hasAttribute(new DisplayNameAttribute("新增设备险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("goodsOnVehicleIns")
            .hasAttribute(new DisplayNameAttribute("车上货物险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("compensationForMentalDistressIns")
            .hasAttribute(new DisplayNameAttribute("精神损害抚慰金责任险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("insuranceTax")
            .hasAttribute(new DisplayNameAttribute("交强险"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("vehicleTax")
            .hasAttribute(new DisplayNameAttribute("车船税"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("vehicleLateFee")
            .hasAttribute(new DisplayNameAttribute("车船税滞纳金"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionInsuredProvider()));

        this.setProperty("comfirmStatus")
            .hasAttribute(new DisplayNameAttribute("报价状态"))
            .hasAttribute(new DropDownListAttribute(new TestCarCollectionStatusProvider()));

    }
}
